<table width="680" border="0" cellspacing="0" cellpadding="0" class="from_table">
  <tr>
<th colspan="3" style=" text-align:left; padding-left:10px;"><tpl> $langSysSParticularFlux </tpl>  |  <a href="javascript:;" onclick="ajax_link('');"><tpl> $langSysSParticularFluxDirection </tpl></a>
</th></tr><tr>
		<th><tpl> $langSysSPleaseSelectTime </tpl>：</th>
		<td width="500">
		<input name="time" type="radio" value="1" onclick="ajax_list(this.value);" <tpl> if $time eq '1' </tpl>checked="checked"<tpl> /if </tpl>/><tpl> $langSysSToday </tpl>
		<input name="time" type="radio" value="2" onclick="ajax_list(this.value);" <tpl> if $time eq '2' </tpl>checked="checked"<tpl> /if </tpl>/><tpl> $langSysSYesterday </tpl>
		<input name="time" type="radio" value="3" onclick="ajax_list(this.value);" <tpl> if $time eq '3' </tpl>checked="checked"<tpl> /if </tpl>/><tpl> $langSysSBeforeYesterday </tpl>
		<input name="time" type="radio" value="4" onclick="ajax_list(this.value);" <tpl> if $time eq '4' </tpl>checked="checked"<tpl> /if </tpl>/><tpl> $langSysSNonceWeek </tpl>
		<input name="time" type="radio" value="5" onclick="ajax_list(this.value);" <tpl> if $time eq '5' </tpl>checked="checked"<tpl> /if </tpl>/><tpl> $langSysSUpWeek </tpl>
		<input name="time" type="radio" value="6" onclick="ajax_list(this.value);" <tpl> if $time eq '6' </tpl>checked="checked"<tpl> /if </tpl>/><tpl> $langSysSNonceMonth </tpl>
		<input name="time" type="radio" value="7" onclick="ajax_list(this.value);" <tpl> if $time eq '7' </tpl>checked="checked"<tpl> /if </tpl>/><tpl> $langSysSUpMonth </tpl>
		<input name="time" type="radio" value="8" onclick="ajax_list(this.value);" <tpl> if $time eq '8' </tpl>checked="checked"<tpl> /if </tpl>/><tpl> $langSysSLatelyThirtyDay </tpl>
</td>
	<tr><th><tpl> $langSysSNonceTimeSegment </tpl>：</th><td><tpl> $end_time </tpl> <tpl> $langSysSTo </tpl> <tpl> $start_time </tpl></td></tr></table>
<table width="680" border="0" style="float:left; clear:both" cellspacing="0" cellpadding="0" >
 <tr>
        <td colspan="3" width="680" style="height:6px; background-color: #E6F5FF;"></td>
  </tr>
</table>
<table class="from_table2_one top-1">
  <thead>
   <tr class="area_ajax_list_title">
    <th class="pd-left" class="zhl_th1"><tpl> $langSysSParticularPage </tpl></th>
    <th class="zhl_th1">PV</th>
	<th class="zhl_th1"><tpl> $langSysSPercent </tpl></th>
	<th class="zhl_th1"><tpl> $langSysSDirection </tpl></th>
  </tr>
  </thead>
  <tr>
  	<td class="pd-left" align="left"><tpl> $langSysSTotalize </tpl></td>
    <td align="left"><tpl> $num_sum|default:'0' </tpl></td>
	<td align="left">100%</td>
	<td align="left"></td>
  </tr>
      <tpl> if $num_sum neq '' && $num_sum neq '0' </tpl>
	  <tpl> section name=loop loop=$from_array </tpl>
			<tpl> if $smarty.section.loop.rownum <= '40' </tpl>
		  <tr>
			<td align="left" class="td1"><a href="<tpl> $from_array[loop].url </tpl>" target="_blank">
			  <tpl> $from_array[loop].url|truncate:'50' </tpl>
			</a></td>
			<td align="left">
		    <tpl> $from_array[loop].num </tpl></td>
			<td align="left"><tpl> if $num_sum neq '0' </tpl>
				<tpl> $from_array[loop].num/$num_sum*100|string_format:'%.2f' </tpl>%
			<tpl> else </tpl>
				0.00%
			<tpl> /if </tpl>
			</td>
			<td align="left"><a href="javascript:;" onclick="ajax_link('<tpl> $from_array[loop].url </tpl>');">
		    <tpl> $langSysSDirection </tpl></a></td>
		  </tr>
			<tpl> /if </tpl>
	  <tpl> /section </tpl>
	<tpl> else </tpl>
		<tr>
			<td align="center" colspan="4" valign="middle"><tpl> $langSysSThisTimeNotData </tpl></td>
		</tr>
	<tpl> /if </tpl>
</table>
<script type="text/javascript" language="javascript"> 
function ajax_list(time){
	$.ajax({
		url: "statics_from.manage.php",
		data: 'action=list&time='+time,
		type:'get',
		dataType:"html",
		beforeSubmit:  showLoading(showText),   // 提交之前执行的方法
		success: function(msg){
			$("#result_content").html(msg);
			hideLoading();
		}
	});
	return false;
}

/* 切换页面 */function ajax_link(str){
	$.ajax({
		url: "statics_from.manage.php",
		data: 'action=trend&url1='+str,
		type:'get',
		dataType:"html",
		beforeSubmit:  showLoading(showText),   // 提交之前执行的方法
		success: function(msg){
			$("#result_content").html(msg);
			hideLoading();
		}
	});
	return false;
}
</script>
